export default {
    namespaced: true,
    state: {
      /** 设置绘制参数 **/
      /** 绘制信息 **/
      lineColor: '#0073eb',
      fillStyle: 'rgba(0, 115, 235, 0.1)',
      lineWidth: 1,
      borderWidth: 0,
      scale: 1,
      columnNum: 3, // 表格列数
      /** table 拖拽圆圈样式 **/
      dragPointer: {
        size: 16,
        radius: 4,
        borderColor: '#0073eb',
        fillStyle: '#fff',
        strokeColor: '#0073eb',
        lineWidth: 1,
        cornerStrokeColor:  '#0073eb',
        cornerShape: 'circle'  // 'rect', 'circle'
      },
      mouseFrom: {
        x: 0,
        y: 0
      },
      mouseTo: {
        x: 0,
        y: 0
      }
    },
    mutations: {
      SET_MOUSE_FROM (state, payload) {
        state.mouseFrom = payload;
      },
      SET_COLUMNNUM_TO (state, payload) {
        state.columnNum = payload;
      },
      SET_MOUSE_TO (state, payload) {
        state.mouseTo = payload;
      }
    }
  };